0.5.0: load function added

The load function was previously provided as an example in the documentation. It has now been moved into code.

The version has been bumped to 0.5.0 to reflect this change.