removed debug printouts, fixed indent
put messages code in base so it's shown on all pages. #23