Code refactoring. Plugin now fully functional and ready for beta testing.