Tidy up aneurysm.m
Move functions to separate script file