update profile
Refactored  script
Merge pull request #1 from lyrixx/better

Refactored script and added support for different profile, 
thanks for sending back