implemented controller subsystem, changed namespaces and directory hierarchy