minor changes: replace while by zfill in binvalue
fix some comments indentation