Adding readme and reorganizing code for submission