added /h and /help and fixed some minor bugs