Compatibility with Closure Compiler in advanced mode:
- move optional parameter to end of list
- window is no longer an acceptable type for the root
Update API documentation to reflect API changes in 0.1.1