tests & bugs fixed; updated docs

Preferred algo API format w/ options obj as discussed w/ Gerardo #574
Tests need revision for headless style #563
Remove buffers from the DOM if possible #586
Viewport bounds functions #578