removed unneeded let's and some whitespace
improved documentation