library and stylesheet cleanups, dynamic content loading, small fixes