Added finish() to Map Device. Formatted all files for better readability.