Issue5

Code fix and accompanying documentation for issue #5.