added delegatemethods to .h, rearanged methods
added positioning of submit buttion, option for disabling automatic resizing