Implemented touch interface and writing to canvas

Implemented touch interface and writing to canvas