some fixes

# Add logger
# Fix several error with serial connection
# Update gitignore