Renamed map functions

Added function to extract diag from matrix.
Added doc to vec package.
Removed hidden file (accidentally added)