Added verbosity for library and output file
Added header
Add multidimensional support