Headless options

Hey ! apologies for the last wrong pull request. You were right, it wasn't based on the latest master. 

So I found one bug that I missed. 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. :)