Edit code is now functional, everything works ok

Need to improve log formatting and speed