Implemented export as pdf feature. Added license header to all files.