more comments
remove unused function bits2bytes() and remove useless empty lines