Add support for Static fields in regexp
Better error handling in betforheader, use static in regexp, typo in betfor23
Calculate linenumber from recordnumber
Let later code give better warnings about unknown lines. Fixes #2.