Remove $Id tags

Also adds binary coding magic comment to a few files