Moved axforms to module axform.

Moved code in main.py to axform.py module.