update bash_profile, rewrite commit and convert function