added .lein-repl-history and .nrepl-port
finished exercises; added a helper function