Added args to ls and fixed writing defaults to file
Don't return empty dict values