Refactored mpldatacursor into separate files