Corrected type in docblock
Incorrect parameter passed
Provided type for printer and updated deprecated methods