Refactored Hmat and Hvec. Added certain osx-files to .gitignore. Hmat and Hvec are now done.