[Anton] I moved all the block code to where it should be, cleaning up the main mod file and making sure this stuff works. Also deleted some stray code which wasnt needed.