Use size_t where applicable
Fix jumpy focus when scrolling
Silence warnings about dollars in identifiers