added a man page, fixed some nitpicks, fixed strtrim()