Add sublime text 3 support and some code style changes