Commented a lot, changed boolean to bool