updated arg checking
removed redundant files