Constructor function for char arrays and other minor changes according review notes