amdp function returns an object with everything needed to print. created a default plot function.