code cleanup

update to v0.3.2-beta
added debug/local mode checks for debug output

update to v0.3.3-beta