Updated extended modes to use BER encoding and added some basic comments