Bug fixes

Major bugs included directing R to flag empty strings as missing ("" as
NA) when reading in tables. Moves missing data checks earlier in code,
prior to converting date strings to date type. Other misc bugs fixed.