add gitignore, comments an some fixes