More documentation. Refactored use of constants inside services.js. All unit tests pass.