#39: fixes tab indents
fixes #39: eliminates fs-sync
improves coding style; fixes tab indent; fixes potential vairable confliction;