cleanup of script / error checking of arguments

Also added a usage / help