Initial upload

3 scripts and main added.