Some improvements

- added close
- some problem between si a float nad int and vice versa