Added class header license and copyright information. Added get file extension function.