Added theme support, user preferences, fixes