revert extra changes
add hashbang for a shell script
generalise script
add instructions