development
Revert "fix flag comments"

This reverts commit 4dfdd01e1646133e1ab40b0eaa0fdf9ea5dba877.
Revert "development"

This reverts commit 8d27e31794b1d61e5d6b4d5b7643085fcd058a86.
Basic http error checking
Add better error checking and -maxerror flag
Add -maxerror flag