Switched building to makefiles, resolved all compiler warnings, updated the readme