define firstbit (usefull 100000 var) and clean comments
added printbits function, can be usefull to test