Added a README, cleaned up some redundant code.