udpated usage message and error testing