Added function definition
Fixed parser
Added funcdef example