added VILogger, updated swift syntax and tests