Added buttons to clear graph and text; added operations; bugfixing