Improved resolution of currently presented view controller: Screenshots can now also be taken from e.g. modal ViewControllers.
Match repository formatting for spaces.
Clean up comments.