general code cleanup (added MSOT license and some description text to new files)