fixed many problems.

removed dumb features,
fixed memory leaks,
refactored code.

also, apparently this is hosted on bitbucket now.