Some refactoring
Added a new function for painting arrays of data.
Added axis helper