Refactoring the code

so that it is compatible with Sublime 2.

Unfortunately there is no nice way of loading project specific settings in Sublime 2