Fix compile-errors, add sample app and readme.