Added licence information to all .cpp and .h files