Added fine-grained window resizing and improved the open-files-in-region function.