Today I finished the block implementation.
I also added an error when the file extension is not recognized and I fixed a bug with an uninitialized variable in Layer

I'll add this to master later, after doing a rebase