Inserted commands into functions

Also updated README with things to be considered while porting the
functions.
Minor edit (Missing declaration)
snap_test major changes

:Refer to file for changes to snap_test
:All other files' changes are minor