fixing broken functions and bugs. also update to print styles (css)