Add documentation
Remove double allocation
Add documentation for main function
Add documentation for the other functions
Merge branch 'master' of https://github.com/tversteeg/xbar