Moved SPL classes into separate files and documented

Moved each class added in 752bb56 into a separate file.
Also used script to add auto-documentation from PHP's
website.