Fixed lots of errors and used Impromptu for better dynamicobject handle