1.1.1 release

1. Port bug fixes from 2.0.5
2. Get rid of floating point.
3. Make inline methods static