improved "usage" message
replaced debug output with proper progress display
proper error handling