fix insert bug
adding more validation
fixing small bugs
fix template
if else with boolean
more if else generation
if else
fix if else
- cleaning up
- add documentation
more cleanup
fix bug
add test
remove code duplication
clean up and add comments