Fixed licensing and documentation

Pramod, this comment is meant for l145. Library functions _almost always_ should not do printStackTrace. Either they should try to recover from the exception gracefully or let the exception escape to the caller.