use try() to clean up the code a bit
fix typo
simplify code
remove unnedded parentheses
Merge pull request #473 from adrianob/use_try

use try() to clean up the code a bit