Added majority of code and updated README

Missing some descriptions of files, but should be self-explanatory.