Many bug fixes in scripts and paths.
Added map command.