add two forms of expose, add minimize, various bug fixes