build optimizations
changed latency option to use low|med|high instead of 0|1|2 so it's easier to understand