Refactoring aptime.py.  Adding numarb.py.