Finally got rid of old library (monstrosity!)

All former functions have been/will shortly be implemented.