- (Leon,Gerrit) added generation of sample matrix

- (Leon,Gerrit) made older functions python idiomatic too