Adapt code to new serial API and fix README links.