Added STYLogWarning and STYLogError. Logging cleanup.