increase STAMP_MAX to 500 (25 pages, should be enough for anyone using stamps ...). Some other random changes