include sample mirc code. fix sloppy cpp code.