.h and .cpp now separated, added licence header