Improved the file structuring.
Improved formating.
Added comments.