added some more examples and fixed a multimethod bug
added basic support for functions