move code to packages, move todos to examples subdir