synchronisation
improved doc and error handling in format_scat.m
created unit test for format_scat