Alright, let's cut the crap. No more typescript, no more apidoc. Added the Result class and added unit tests.