Add comments

Foreground and database done