Update RakeFile, improved working codes, fixed bugs