Issue #195 adding getData() method, removing unused variables and modifing variables