Constructor of function capsule now receives name and size

close #11