Coding standards / simplify purge script. Closes gh-3