fix nil error
compDir and compFile to return error
fix up errors to be more sane
fix nil bug