Implemented white-space	elimination + fixes

Fixed a bug in page offset calculation.
FIxed another bug in getInfoForNode()