improve code structure.
rough-and-ready rake file. rake loop to develop.