Add source and destination generation WIP
Source generation is refactored to use generate_src_dst function.
Add destination generation.
Style fixes in ruby codes.