fix a bug in a constructor
updated user input & the crash form
fixed a few bugs
reformated code
reformated code