Added userguide. Fixed some small cli issues in the applications.