Added capabilities module
Added previous commits files
Initialise and free capabilities