Vending machine sample, minor refactoring, deprecation fixes, started GUI