Adds an optimalisation in pow_two, Updates some comments, reordered some stuff