formatting

added and removed some comments
added license note to file
tabs to spaces
filetype changed to unix