Basic makefile, LDA in direct and extended modes, and other small changes as well