added file headers and documentation
Merge remote-tracking branch 'upstream/master'