Added check for unset patch positions
Updated doc strings