Added support for declaring motors and layout

in json