Changed log filename to match conventions, created makeHTTPSafe method, fixed parsetable and sendData methods