Improved documentation

Added Comments, removed char variable and added reference to prompt