Made minor bugfixes and added view_print.php