Various typo and doc improvements
Splits getMap in four methods.
This method was way too complex and too long. I've split it in
four parts, we shouldn't face any performance loss... And we clearly
gain in code clarity !
adds some logging capabilities
Merge pull request #31 from agueganno/minor-improvements

Minor improvements