Added Config and organized code.