updated version to v0.02, code tidy