Small fixes and additions

Fixed code, added caret option, compiled with closure to 2.3kB