minor update to functions
added license
Merge pull request #3 from wgallios/dev

added license