update types of functions, remove non existant include and se size_t for strnstrip
fix spacing
use proper types, fix warnings, declare vars  at top of section, take FILE instead of char