Changed license to MIT
Added opts = {} to initializer and also documented stuff.