implemented load library, closes #26