added comments, cleaned up code by deleting some boilerplate code. tested and still runs.
added readme
fixed conflict