MYSController is good when debugging. There are numerous examples to get inspired from on the main site (or /examples if you've downloaded the library).