Enhanced function return detection
Added filtering to module/file trees to remove duplicates
Added --defines command line option