Fixed library requirements, added example.