Added some javadoc and added a metod for adding texts to the log