add missing main, fix file corruption

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>