code cleanup

- add function headers and comments to functions in BalanceSheet module
- update globals used to arrays