rename classes/function to lowercase. remove perror messages..