refactor maps code

importing maps functions are now in their own script