Added slave code section for slave controller. Moved a lot of files around, nothing special though.