getting closer
added comments and clean up