Optimizations and v1.0 api

A bunch of stuff for going 1.0.