Headless options

Hey !

Finally I tried our update in my application and I found one bug that I missed. So I fix it with better analyse of arguments of headless function. It work with success this time in all cases. 

I updated README with some examples. you can keep it or not, it's as you want. :)