documentation & example m-files