Move codes to root
Close tmpfile before rename
Merge pull request #1 from mattn/move_to_root

Move codes to root