finished debugging and added testparser.sh script