Added puzzle size auto-detection, and improved documentation.
Enabled warnings.