Fixed bug with arrays, added include and lib