adding documentataion and fixed delta method bit