Move and rename method printLocation.
Fix typo