Refactor

Splits the program into two parts, a module abakaffe.py and a script.