Added licensing details to all source files
Minor tweaks for distribution