implementing parameters class and commenting code source