Added tests in separate test runner, improved makefile, created external lib
Removed tabs for travis indentatino