Redesigned platform code and plugin the interface. Removed the singleton code