Add more example and fix prototypes