Split out block.h
Add some basic tests
Reorganize makefile a bit
Update gitignore