Add some TS documentation, append TS, testing stuff