add rake file and other modifications