MX log rewritten

Significant changes to MX script in log book.