added license, revised help files, small code cleanup