Updated licence. Reformated the code.