finalized code and added a README