Fixed map and added color support to map. Fixed saving output to the
library directory.