More bug fixes. Added interactive console!