Added hex drawing function

plus additional function skeletons