typing corrections and moving the source code on the bottom