Second commit, added wad routine prototypes.