added updated library archive
minor refactoring