Code cleanup and ability to change minecraft root directory
Code cleanup