remove textfile for bookkeeping
fix some c style casts
http default reason phrases based on status rather than always OK