adding the logic to deal with plugins
Merge pull request #15 from shc023/master

Adding logic in compiler to deal with plugins