Renamed method 'gen' to 'GenerateMatrix'
Renamed all methods to match naming conventions