Check for existence of functions before declaring

This is good for when we try to reload .vimrc using ```:so $MYVIMRC```
Fixing wrong whitespaces
Merge pull request #56 from ivancrneto/master

Check for existence of functions before declaring