add new addjoint method that takes an array
wrote hjpd skeleton
changed value to double to avoid potential rounding errors
got hjpd part of the program writen and compiling