Finished correcting error

Poms calculations now works - but need to finish confirming that results
correspond to manually calculated ones