Finalized code, added comments