Merge pull request #27 from axsh/remove-unnecessary-code

extract prepare().
remove unused code.
remove unused code.
remove unused code.
make sure to use -x.
remove unused code.
remove unused code.