some style changes, AI interface created

mostly minor stuff