Cleaned up and shortened the code & comments, added bkame command.