shortened some lines that were too long
shortened lines that were too long in parseargs
removed dead code and added docstrings