Code formatting and cleanup
Implement format-dots script