Add IDEA config file in .gitignore
Fix typo in serializer
move get_config function to be more flexible