A lot of optimization and modification to 14w20a

A lot of optimization and modification XD

"pull request" Is not that this?