added help text, some code improvements