Fixed some mistakes in the bit bashing. Don't code while tired :)
Added a note about ratio in the demo