Added new functions to the header file and fix syntax