added smart home example and fixed some stuff for constructor parameters