Added directPA source code

Added direcPA source code for version 1.0. I copied this to version 1.1
as well to start editing.