Added a comment
Extracted filter to directive
Fixed bug in median -- forgot Array.sort was lexicographic
The calculator now displays some basic stats