Use class to represent an opening

Also, minor lint fixes