simplified the wordpress-plugin a bit

simplified the plugin and changed some parts to be more WordPress
compliant