Some front-end improvements

added function calculatotal, erro and acerto