calc code added
added run script and some changes