APS alpha1

This is main script, lacking glue.