change alarm calculation method
change version to 0.0.4