Overhaul

Complete overhaul of plugin to fix major bugs and make it release worthy.