Updated library with standard SPL exceptions