modularized lee functions; got timingAnalysis.m working