Adding data extraction methods. Builds, but probably still buggy.
Adding debugging code to the mapper module.