Fix id method, add perltidy

This is the only change that isn't perltidy.