method extract is capable of extracting simple integer and double
variables.
structures also seam to work.
right now everything is passed by value. this should be changed later.
passing arrays defenitly does not work.