Added documentation and licence headers #270