fixed all the errors from mess detecter en codesniffer