Refactoring of avsp.py as discussed in issue #31

A added a package called avsp2 and a main module called avsp2main.
Note that the original avsp.py remains unchanged as there may be bugs introduced by the refactoring.