More or less finished plugin

Added mussing stuff
Formatted messages nicely
Somewhat optimized existing code
Plugin should be ready for use now