docs, comments, some ui stuff