Added licensing info
Added readme documentation
Cleaned up code format