Error resolved
fixed minor indentation bug
fixed all indentation bugs
made changes as per sahil