Remove 'usage' function, remove excess variables in parseargs and looping over an index