Minor tidying. Added comments.