Add logging
Create a .mesh directory if one doesn't exist