improved parameter handling
added usage help