translated comments and cleaned up the code

Still need to translate variable names