Add status bar feature. Remove resetbar function. PropertyNotify event mask. Other small changes.