Fixes an error where the error message would show even after you corrected your mistake
Added a bunch of documentation comments