Added documentation, calculated DIM for canvas