Moved function prototypes into separate header.
Fixed the header file.