slighly modified interpreter and main to prepare for adding new functions