add page ticks;
hide ticks of x-axis;
rename some functions and variables