Added license information to files.
Updated code documentation.