Restructured matlab code.  Handles multiple version flylab files.