lib: added tests for the system.go file.
lib: added documentation to the systems.go file.