extended menu class
created example for menu class
fixed c++ / php bindings