Fix braino
Fix small bugs
New variables and removed useless ones
Comment out exiting with error