updated comments and removed excess code