first pass at doors. fixed some bugs