updated readme and tested Function type in schema