refactor argument parsing. removed jsdocs from repo not needed.