help functionality added, code improvements