updated styling (indentationgit diff, doc strings, column width), added licence info to comments
reformatted code to compensate for shorter lines, shortened comments, renamed a wrongly named variable (leftover from before name change)