ENH: added Mat accessors, cleaned API, changed semantics of takeRows (GH #4)