Updated to decompress certificates

Updated to correctly process TLV elements -- fixes bug where iterated past
them when processing

Updated to correclty process TLV element total length