Make dirs for controllers and models, clean up some codes