License added
tests written to 100% coverage; 3 fixes to code