implemented getData method
added a untested algorithm for parsing bigger lengths