Bug fixing and more documentation

- Fixed bug where compile command was not formed correctly
- Fixed bug where compiler flags and defines were duplicated
- Added more documentation to the README
- Little work on testing