Clean up the cs and add some comments
Get lines to create dynamically through data map