Ported library back to Java6 to provide usage in older projects. Issue #28