Completed adaptive HMC using dual averaging + various small improvements