added pseudocode to gif controller