Finished writing the input parsing for pd commands