Added in-code documentations.

Reformatted code