Implement interface borders

Implements #105 amongst a few other little fixes.