Changed library pattern to prototype and simplified instantiation
Merge pull request #1 from amaurer/master

Library Pattern and Instantiation