add licence informations and use standard c array declaration