Fixing malloc
change dim of the return array
Fixing profilesaver.c saver
still pending handle the size of the array to be readed