Some changes

- added a loadFtmFile function
- some minor changes