Added interface.js interfaces and other small fixes