Initial commit

The main script has been finished. I passes pylint and PEP8 static
checking but has not been fully debugged yet.