Issue #47 draft

Hi @0xAX i started playing around with some code regarding issue#47
I think it should be further improved and i don't know if you agree on "default values"

Please review it and give me your feedback !

Thanks 

pap