Initial commit of pecan code and tests