Fixed issue of having too much data to return
Fixed issues of library being undefined
Cleaned up some logging