Refactored: monos, files, vars

Moved monos outside descriptor file
Renamed files to prepare for libmad
Renamed vars in descriptor
Added checks for results of malloc
fixed bugs related to knobs
H matrix: differentiation between idx 0 and invalid idx
cosmetic changes