Added licenses and formating