Completely Formatted the source.

This commit makes the source more readable and easier for developers to
use it and improve it with Pull Requests.