Refactoring nexus-core. Faster, easier.

Signed-off-by: Roger Manich <roger.manich@gmail.com>