Converted original project into static library and example application.