Commited main files.

Commited main files. Compatible with Minecraft 1.6.2