Fixed mode handling and added info.js with verbose mode output and various commands.