bump version, cleanup code and add bit documentation