Started working on v2 of the script, making it ready for cli usage
Removed obsolete code
Made version two, under 100 lines