Corrected code standard and solved running problems