Eflist alone

Some changes are made based on the comments.
Please remove the dependency on libmath. There's a simple way to take log2 of a number without it.