Finishing example code

Implemented "Complete todo" and "Clear". The router also.