implemented argument parsing and updated docs