Forge Compatibility

Changed a lot of things to make it works with forge. It now works
perfectly I think :D