Update code style ala WordPress

The plugin is great, but the styling doesn't comply with the WordPress coding conventions. Any way we can bring it closer for improved readability?