slight refactoring. added builders
Remove tools.js
refactor
wrote tests for building api frames
implemented frame builder