JavaDoc added. Check tested