Filled and adapted source code for generic usage - filled into reusable app, adapted readme.