Changed README to markdown. Cleaning up code.