Added log fucntions
Rewrote import statements