added comments and organized code
Merge branch 'master' of https://github.com/digitalabs/IBPMiddleware