Using serial.print to debug a library

Well That's embarrassing, I've been working on Vex robots mostly, and when using the Arduino just worked in a single file. I did switch to .cpp file extension and I get different (but somewhat similar) errors. I also noticed I posted the wrong example of my Library split amongst files.

The corrected posting is below:

.ino file

#include "MyLibrary.h"
MyLibrary myLibrary(Serial);

void setup() {
  myLibrary.test();
}
void loop() {}

.h file

#ifndef _EXAMPLE_SPLIT_H
#define _EXAMPLE_SPLIT_H
#endif
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "HardwareSerial.h"

class MyLibrary {
  public:
    //pass a reference to a Print object
    MyLibrary( HardwareSerial &print );
    void test();
  private:
    HardwareSerial* printer;
};

.cpp file

class MyLibrary {
  public:
    //pass a reference to a Print object
    MyLibrary( HardwareSerial &print ) { 
      printer = &print; //operate on the adress of print
      printer->begin(9600);
    }
    void test() {
      printer->println("Hello library with serial connectivity!");
    }
  private:
    HardwareSerial* printer;
};

Errors reported by the compiler:
MyLibrary.cpp:3: error: expected `)' before '&' token
MyLibrary.cpp:11: error: ISO C++ forbids declaration of 'HardwareSerial' with no type
MyLibrary.cpp:11: error: expected ';' before '*' token
MyLibrary.cpp: In member function 'void MyLibrary::test()':
MyLibrary.cpp:8: error: 'printer' was not declared in this scope

I would appreciate any help resolving the first 2-3 errors The last error looks to be caused by the first error not being resolved.

Thanks - Kb