add headless option, build flags that make sense and options in readme