added contracts for eMatrix.rb