Minor - adding docs, format code.