Fixed Secret Key Bug and Identation Issues