Add specta syntax detection
Various improvements