changed: added license header, and code comments to source files