Added lots of comments and improved readability

Signed-off-by: epicfinley <epicfinley@gmail.com>