Added MAF command

Also edited Logwriter