Implemented library loader. Closes #180.