mod gitignore for pip freeze and virtualenv.
add test settings.
add predict method and test.