created toggleNav function, other minor improvements"

"