added .idea to the ignore list, and made a few minor code changes