Add typescript definitions, CSS tweaks