MSD segment parser

Added MSD segment parser + fixes for char fields