added function getSubPadIdx6 and a possibility to draw graphs (w/o the ratio)
moved createProfileX and createProfileY from h to cc