Show periodic page In & page Out

Also includes some automatic formatting