cleaned teh code, added comments