Dev/jpsnyder/led/detect matrix number

This closes #9 .

Functionality of detecting number of matrices and calling init_grid() has been implemented as described in the issue.