added usage() and commandline parameter checking