Move boolean code into its own file, and add information comments again.