Change dirty flag to a bit mask

Bump version to 0.2.6