Finished dofw
Renamed from Dofw to dofw.py Also added direction retrieval