corrected coding style, deleted ?>, renamed function keys and used plugin_load