move printing error code to Console module
integrate module X and Spotlib.Base to module Base