added missing whitespace boundaries in PS code
removed unused static functions
set version to 1.8.1
updated NEWS
Added tag 1.8.1 for changeset 245acbe63795