restructuring the source directory; focusing on uniformization between core and rev language.
More bug fixes and memory leaks.