refactor to move define to Clj
minor tweaks to getAt
fixing codenarc violations