Fixed plugin so that it complies with the latest PlatformManager interface.
Other minor improvements on code clarity.
Merge pull request #5 from crazyfrozenpenguin/master

Fix for latest changes on the PlatformManager interface.