Changed license MIT -> ISC. Also redesigned some interfaces.