fixed nextkey
Latest bug fixes. Bumped rev to 0.0.1