Added testing of Z flag when updating MACflags.
Added basic FSAND implementation.
Merge remote-tracking branch 'upstream/master'