First version of the script

First version; working, but with almost no features.