refactor Environment and Function classes

remove environment variable argument for invoke()
change Environment to extend HashMap directly