Reverted & added compatibility

Reverted most changes, added windows compatibility
Cleaned up some shit.