Fixed unit tests and added comments for documentation