moved variables and grouped in three categories with cleaner layout
updated comments and prompts