Fixed namespaces.
Fixed color error; added existing-file check.