rewrote README, removed generated files, organised files, and fixed small sample bug