Move types to constructor
Browser tests and some very basic documentation