Changing instance layout

-Changed layout
-Get instance config working
-Changed class structure for instances