Added makeVector and cachemean
Working version with commented-out test script.