fixed add position bug and adjusted gitignore*